import { createRequest } from '/@/api/service';
const module = 'ib/spareparts/v1/SpareStockApi';

/**
 * @function 库存管理列表查询
 * @param data
 * @param header
 * @returns {Promise}
 */
function QUERY_SPARE_STOCK_LIST(
  data: SpareStockApi.QuerySpareStockListReq,
  header: object = {},
): Promise<SpareStockApi.QuerySpareStockListResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}/querySpareStockList`,
    data,
    header,
    'POST',
  );
}

export { QUERY_SPARE_STOCK_LIST };
